<?php
/**
 * Created by PhpStorm.
 * User: yafex
 * Date: 2019/11/14
 * Time: 21:42
 */
class model_order extends L {

    /**
     * 描述 ：获取订单信息
     * 作者 ：Zoro.Zhu
    **/
    public static function getOrder($order){
        $sql = "SELECT
            `pddOrder`, `confirmTime`, `data`, `orderState`, 
            `addTime`, `aliOrder`, `aliData`, `accountPdd`
        FROM
            `pdd_order` 
        WHERE 1";
        !empty($order['pddOrder']) && $sql .= " AND `pddOrder` = '{$order['pddOrder']}'";
        !empty($order['aliOrder']) && $sql .= " AND `aliOrder` = '{$order['aliOrder']}'";
        return  L::sql($sql);
    }


}